-
Couldn't load subscription status.
- Fork 4
fix: validate range_fn when align not found #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
590e7a2 to
0afc2c2
Compare
0afc2c2 to
b5feba1
Compare
| if name.value.as_str() == "range_fn" { | ||
| let FunctionArguments::List(args) = &func.args else { | ||
| unreachable!() | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we ensure this is unreachable? If not, can we return an error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may use if-let or add a safety note that mentions which place ensures this.
Fix GreptimeTeam/greptimedb#5957